home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
test
/
lib
/
print.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-11-23
|
356 b
|
17 lines
#include <stdio.h>
main()
{
char buf[128];
printf("%c\n", 'a');
printf("hi mom 43 == %d, + 1 == %ld!\n", 43, 44);
sprintf(buf, "hi mom 43 == %3ld, + 1 == %3ld!\n", 43, 44);
puts(buf);
puts("test");
printf("Foo %s on you %s\n", "abc", "def");
printf("%%04d (26): %04d\n", 26);
printf("left just '%-15s'\n", "Fooo");
}